package com.bd1904.conf;

import java.io.IOException;
import java.util.Properties;

public class ConfigurationManager {
    private static Properties properties;
    static {
        try {
            properties = new Properties();
            properties.load(ConfigurationManager.class.getClassLoader().getResourceAsStream("jedis.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    public static String getProperty(String key) {
        return properties.getProperty(key, null);
    }
    public static int getIntProperty(String key) {
        return Integer.valueOf(properties.getProperty(key, "-1"));
    }
}
